package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Order;

import java.util.List;
import java.util.Map;

public interface OrderDao {
    public void add(Order order);

    public List<Order> findByCondition(Order order);

    public Map findById4Detail(Integer id);

    public Integer findOrderCountByDate(String date);

    public Integer findOrderCountAfterDate(String date);

    public Integer findVisitsCountByDate(String date);

    public Integer findVisitsCountAfterDate(String date);

    public List<Map> findHotSetmeal();

    String findAddress(Integer ids);


    List<String> findSetmeal(Integer[] ids);

    List<Integer> findSetmealIdByMemeberId(Integer memberId);


    public Page<Map> findByConditionPage(QueryPageBean pageBean);
    public List<Integer> findSetmealByOrderId(Integer id);
    public void deleteById(Integer id);
    public Map findByOrderId(Integer id);
    public void edit(Map editMap);
    public Integer findMemberId(Integer id);
    public String findOrderStatusById(Integer id);
}
